package rms.mall.server.api.enums;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;


public enum VenueStatus {

    STOP(1, "停止经营"),
    OPEN(0, "正在经营"),
    ;
    @Getter
    private final int code;
    @Getter
    private final String msg;

    private static Map<Integer, VenueStatus> map;

    static {
        map = new HashMap<>();
        for (VenueStatus errorCodeEnum : VenueStatus.values()) {
            map.put(errorCodeEnum.getCode(), errorCodeEnum);
        }
    }

    VenueStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
